package com.dci.dao.pms.schedule;

import com.dci.model.schedule.PmsCapitalContract;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsCapitalContractMapper {
    /**
     * 增加合同
     *
     * @param pmsCapitalContract
     * @return
     */
    int addContract(PmsCapitalContract pmsCapitalContract);

    /**
     * 修改合同
     *
     * @param pmsCapitalContract
     * @return
     */
    int updateContract(PmsCapitalContract pmsCapitalContract);

    /**
     * 通过capitalId查询合同
     *
     * @param capitalId
     * @return
     */
    List<PmsCapitalContract> selectContractById(@Param("capitalId") String capitalId);

    /**
     * 通过id查询合同
     *
     * @param id
     * @return
     */
    List<PmsCapitalContract> selectById(@Param("id") String id);

    /**
     * 修改合同状态
     *
     * @param pmsCapitalContract
     * @return
     */
    int updateContractStatus(PmsCapitalContract pmsCapitalContract);

}
